package dao

import (
	"yundian/internel/pkg/dingo"
	"yundian/internel/pkg/dingo/global"
)

type FddOnlineSignDao struct {
}

func NewFddOnlineSignDao() *FddOnlineSignDao {
	return &FddOnlineSignDao{}
}

//查询法大大用户实名信息
func (f *FddOnlineSignDao) GetFddExtSignUserInfo(customerId string) *dingo.ErrorWrap {
	data := map[string]interface{}{}
	db := global.Orm.Debug().Table("fdd_ext_sign_user").Where("customer_id = ?", customerId).Find(&data)
	return dingo.ErrorIf(db.Error, data)
}
